package day011.enum_app.base;

public class Test {
    public static void main(String[] args) {
        chang(Signal.RED);
    }

    public static void chang(Signal signal) {
        switch (signal) {
            case RED:
                System.out.println("红灯停");
                break;
            case GREEN:
                System.out.println("绿灯行");
                break;
            case YELLOW:
                System.out.println("黄灯等一等");
                break;
        }
    }
}
